package com.fst.dsi.lib.presentation.client.model;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import com.extjs.gxt.ui.client.data.BaseModel;

public class GenericBaseModel extends BaseModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Map<String,String> map;
	

	public GenericBaseModel(Map<String,String> map) {

		this.map = map;
		Set<String> keys = map.keySet();
		Iterator<String> iter = keys.iterator();
		Object key;
		while (iter.hasNext()) {
			key = iter.next();
			Object value = map.get(key);
			set(key.toString(), value.toString());
		}

	}
	
	public Map<String,String> getMap(){
		
		return map;
	}
}
